#pragma once

class Mutex
{
	HANDLE mMutex;
public:
	Mutex() {
		mMutex = CreateMutex(NULL, FALSE, NULL);
	}

	void acquire() {
		WaitForSingleObject(mMutex, INFINITE);
	}

	void release() {
		ReleaseMutex(mMutex);
	}
};